package com.ocean.inxex.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ocean.common.annotation.Excel;
import com.ocean.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * FTP信息（FTP维护系统）对象 sys_ftp_config
 * 
 * @author ocean
 * @date 2024-06-13
 */
public class SysFtpConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 配置名称（备注） */
    @Excel(name = "配置名称", readConverterExp = "备=注")
    private String configName;

    /** 服务器ip */
    @Excel(name = "服务器ip")
    private String serverIp;

    /** 服务器端口 */
    @Excel(name = "服务器端口")
    private String serverPort;

    /** FTP账号 */
    @Excel(name = "FTP账号")
    private String ftpName;

    /** FTP密码 */
    @Excel(name = "FTP密码")
    private String ftpPassword;

    /** ftp用户目录 */
    @Excel(name = "ftp用户目录")
    private String ftpDir;

    /** 绑定用户id */
    @Excel(name = "绑定用户id")
    private String userId;

    private String deptName;
    private Integer isOpen;

    private Integer muluyn;

    public Integer getMuluyn() {
        return muluyn;
    }

    public void setMuluyn(Integer muluyn) {
        this.muluyn = muluyn;
    }

    public Integer getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 更新日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setConfigName(String configName) 
    {
        this.configName = configName;
    }

    public String getConfigName() 
    {
        return configName;
    }
    public void setServerIp(String serverIp) 
    {
        this.serverIp = serverIp;
    }

    public String getServerIp() 
    {
        return serverIp;
    }
    public void setServerPort(String serverPort) 
    {
        this.serverPort = serverPort;
    }

    public String getServerPort() 
    {
        return serverPort;
    }
    public void setFtpName(String ftpName) 
    {
        this.ftpName = ftpName;
    }

    public String getFtpName() 
    {
        return ftpName;
    }
    public void setFtpPassword(String ftpPassword) 
    {
        this.ftpPassword = ftpPassword;
    }

    public String getFtpPassword() 
    {
        return ftpPassword;
    }
    public void setFtpDir(String ftpDir) 
    {
        this.ftpDir = ftpDir;
    }

    public String getFtpDir() 
    {
        return ftpDir;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("configName", getConfigName())
            .append("serverIp", getServerIp())
            .append("serverPort", getServerPort())
            .append("ftpName", getFtpName())
            .append("ftpPassword", getFtpPassword())
            .append("ftpDir", getFtpDir())
            .append("userId", getUserId())
            .append("createDate", getCreateDate())
            .append("updateDate", getUpdateDate())
            .toString();
    }
}
